package tech.powerjob.server.extension.defaultimpl.alram.module;

import lombok.Data;

/**
 * @author :  dongzp
 * Time :    2021/11/22 21:55
 * Project : powerjob
 * Email :   90fanhua@gmail.com
 * Remarks : 通用系统通知模板
 **/
@Data
public class SystemNotifyAlarm implements Alarm {
    private Long instanceId;
    private Long jobId;
    private Long appId;


    private String title;
    private String content;

    @Override
    public String fetchTitle() {
        return title;
    }

    @Override
    public String fetchContent(){
        return content + "\n\n======以下是系统消息======\n应用ID：" + appId +"\n实例ID：" + instanceId + "\n工作ID：" + jobId;
    }
}
